package com.biz.primus.ms.depot.dao.ro;

import com.biz.primus.base.enums.CommonStatus;
import com.biz.primus.base.redis.annotation.Ro;
import com.biz.primus.base.redis.annotation.RoSortedSet;
import com.biz.primus.base.redis.bean.BaseRedisObject;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

/**
 * FreightTemplateRo
 *
 * @author JKLiues
 * @date 2017年11月03日
 */
@Getter
@Setter
@Ro(key = "freight:template")
@RoSortedSet(key = "list", score = "id")
public class FreightTemplateRo extends BaseRedisObject<Long> {
    private static final long serialVersionUID = -1853888713240386601L;
    /**
     * 模板编号
     */
    private String freightCode;

    /**
     * 物流公司
     */
    private String logisticCompany;

    /**
     * 可用状态
     */
    private CommonStatus status;

    /**
     * 简要描述
     */
    private String description;

    /**
     * 生效时间
     */
    private Timestamp beginDate;

    /**
     * 失效时间
     */
    private Timestamp endDate;
    /**
     * 满XX免邮费
     */
    private Integer freeCost;
    /**
     * 首重(g)
     */
    private Integer baseWeight;

    /**
     * 续重(g)
     */
    private Integer stepWeight;

    /**
     * 首费(分）
     */
    private Integer baseCost;

    /**
     * 续费(分)
     */
    private Integer stepCost;
}